function register(obj) {
	var checkbox = $(obj).find(":checkbox");
	var flag = checkbox.prop("checked");
	if (flag) {
		var psw = $(obj).find(":password");
		var password = psw[0].value;
		var passwordr = psw[1].value;
		if (password == passwordr) {
			formThis(obj, function(status, data, headers){
				toast.success(getMessage(headers), ()=>skip("/admin/login"));
			}, function(status, data, headers){
				toast.failure(getMessage(headers));
			});
		} else {
			toast.info("两次输入密码不一致，请检查");
		}
	} else {
		toast.info("您必须勾选同意协议才能继续注册用户");
	}
	return false;
}